/*  1:   */ package org.intellij.plugins.relaxNG.convert;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.ui.ComboBox;
import org.jetbrains.annotations.NonNls;

import javax.swing.*;
import java.util.HashMap;
import java.util.Map;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ public class AdvancedXsdOptions
/* 11:   */   implements AdvancedOptions
/* 12:   */ {
/* 13:   */   @NonNls
/* 14:   */   private static final String a = "disable-abstract-elements";
/* 15:   */   @NonNls
/* 16:   */   private static final String b = "any-process-contents";
/* 17:   */   @NonNls
/* 18:   */   private static final String c = "any-attribute-process-contents";
/* 19:   */   private JComponent d;
/* 20:   */   private JCheckBox e;
/* 21:   */   private ComboBox f;
/* 22:   */   private ComboBox g;
/* 23:   */   
/* 24:   */   public AdvancedXsdOptions()
/* 25:   */   {
/* 26:31 */     a();
/* 27:   */   }
/* 28:   */   
/* 29:   */   public JComponent getRoot()
/* 30:   */   {
/* 31:46 */     return this.d;
/* 32:   */   }
/* 33:   */   
/* 34:   */   public Map<String, ?> getOptions()
/* 35:   */   {
/* 36:50 */     HashMap localHashMap = new HashMap();
/* 37:51 */     if (this.e.isSelected()) {
/* 38:52 */       localHashMap.put("disable-abstract-elements", Boolean.TRUE);
/* 39:   */     }
/* 40:54 */     localHashMap.put("any-process-contents", this.f.getSelectedItem());
/* 41:55 */     localHashMap.put("any-attribute-process-contents", this.g.getSelectedItem());
/* 42:56 */     return localHashMap;
/* 43:   */   }
/* 44:   */   
/* 45:   */   public void setOptions(Map<String, ?> paramMap)
/* 46:   */   {
/* 47:60 */     this.e.setSelected(paramMap.get("disable-abstract-elements") == Boolean.TRUE);
/* 48:61 */     Object localObject1 = paramMap.get("any-process-contents");
/* 49:62 */     if (localObject1 != null) {
/* 50:63 */       this.f.setSelectedItem(localObject1);
/* 51:   */     }
/* 52:65 */     Object localObject2 = paramMap.get("any-attribute-process-contents");
/* 53:66 */     if (localObject2 != null) {
/* 54:67 */       this.g.setSelectedItem(localObject2);
/* 55:   */     }
/* 56:   */   }
/* 57:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.convert.AdvancedXsdOptions

 * JD-Core Version:    0.7.0.1

 */